home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
dtswps.zip
/
DTSFILES.ZIP
/
README.2ND
< prev
next >
Wrap
Text File
|
1996-06-27
|
3KB
|
86 lines
/******************************************************************************
*
* README.2ND
*
* OS/2 DTS C++ Support Package and Work Place Shell Sample Program
*
* Copyright (C) 1995, 1996 IBM Corporation
*
* DISCLAIMER OF WARRANTIES. The following [enclosed] code is
* sample code created by IBM Corporation. This sample code is not
* part of any standard or IBM product and is provided to you solely
* for the purpose of assisting you in the development of your
* applications. The code is provided "AS IS", without
* warranty of any kind. IBM shall not be liable for any damages
* arising out of your use of the sample code, even if they have been
* advised of the possibility of such damages.
*
******************************************************************************/
You have reached this point by following the directions in README.1st:
mkdir <DIR>
cd <DIR>
pkunzip -d dtsfiles.zip
Now, you need to arrange that OS/2 is using the som.dll just extracted into
<DIR> (this is a development build of som.dll at the level of the SOMobjects
CSD 2.1.3, as are all other files to the extent possible). To do this, edit
the LIBPATH line in your config.sys so <DIR> comes first, and then reboot.
Then continue with the following:
cd <DIR>
.\setdts <DIR>
This sets up path environment variables so that the files in <DIR> will take
precidence over others that might be installed on your system. This will provide
a completely consistent SOM 2.1 environment for working thru the examples that
follow.
Then continue with the following, which will create the DTS C++ headers for
the IDL files in in <DIR>.
sc -shh -musehpass *.idl
Once you've done this, you should be able to do:
icc 1.cpp
1.exe
This verifies correct installation of the files in this package and the correct
operation of the DTS C++ compiler on the header files created in the previous
step. The output from running the executables should look like:
{An instance of class SOMClassMgr at address 00076DD0}
If the previous step was successful, you should be able to do the following, which
verifies correct operations of the DTS C++ implementation template emitter. You
should see no errors or warnings.
sc -shc 2.idl
icc -c 2.cpp
Finally, to verify that the WPS header files generated above are acceptable to the
DTS C++ compiler, you can do the following. You should see no errors or warnings.
icc -c 3.cpp
After these checks, you can cd to EXAMPLE and do the following:
nmake clean
nmake
install <LIBDIR>
dinstall <LIBDIR>
where <LIBDIR> is some directory in your libpath where ex1.dll will placed,
and then deleted. For example, LIBDIR can be .. if you added <DIR> to your LIBPATH
and rebooted, as suggested above.
This will build, install, and uninstall the example used in the OS/2
Magazine article titled, "WPS Programming with DTS C++". After running install,
you can right mouse click on the Ex1 Folder on your desktop, and then select
"Do Ex1 Thing" to test the new functionality added to folders by the Ex1 class.